<link type="text/css" rel="stylesheet" href="__STATIC__/home/datatime/test/jeDate-test.css">
<link type="text/css" rel="stylesheet" href="__STATIC__/home/datatime/skin/jedate.css">
<script type="text/javascript" src="__STATIC__/home/datatime/src/jedate.js"></script>
<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="{:url()}" method="get">
            <div class="layui-form-item">

                <label class="layui-form-label">消费类型</label>
                <div class="layui-input-inline">
                    <select name="cost_type" class="field-bank_id" type="select">
                        <option value="6" selected>全部</option>
                        <option value="1" {if condition="input('get.cost_type') eq 1"}selected{/if}>婚恋置顶</option>
                        <option value="2" {if condition="input('get.cost_type') eq 2"}selected{/if}>打招呼</option>
                        <option value="3" {if condition="input('get.cost_type') eq 3"}selected{/if}>赠送礼物</option>
                        <option value="4" {if condition="input('get.cost_type') eq 4"}selected{/if}>导师周易咨询</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">消费时间</label>
                <div class="layui-input-inline" style="min-width:230px;">
                    <div class="jeinpbox"><input type="text" name="create_time" value="{:input('get.create_time')}" readonly placeholder="年月日~年月日"  id="test11A" lay-verify="required" autocomplete="off" class="layui-input"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">

    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>编号</th>
                <th>消费用户</th>
                <th>消费对象</th>
                <th>消费红豆</th>
                <th>奖励红豆</th>
                <th>消费时间</th>
                <th>消费类型</th>
                <th>咨询内容</th>
                <th>广场内容</th>
                <th>礼物名称</th>
                <th>置顶天数</th>
                <th>消费状态</th>
<!--                <th>操作</th>-->
            </tr>
            </thead>
            <tbody>
            {php}
            $level = config('hs_system.member_level');
            {/php}
            {volist name="costlist" id="vo"}
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="{$vo['id']}" lay-skin="primary"></td>
                <td class="font12">{$vo['id']}</td>
                <td class="font12">{$vo['fromname']}</td>
                <td class="font12">{$vo['toname']}</td>
                <td class="font12">{$vo['num']}个红豆</td>
                <td class="font12">{$vo['rewardnum']}个红豆</td>
                <td class="font12">{$vo['create_time']}</td>
                <td class="font12">{$vo['cost_type']}</td>
                <td class="font12">{$vo['tapname']}</td>
                <td class="font12">{$vo['contents']}</td>
                <td class="font12">{$vo['giftname']}</td>
                <td class="font12">{$vo['topname']}</td>
                <td class="font12">{$vo['status']}</td>
<!--                <td style="width: 150px;">-->
<!--                    <div class="layui-btn-group">-->
<!--                        <div class="layui-btn-group">-->
<!--                            <a href="{:url('updategift?id='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe642;</i></a>-->
<!--                            <a data-href="{:url('delgift?table=home_bank&ids='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </td>-->
            </tr>
            {/volist}
            </tbody>
        </table>
        {$costlist->render()}
<!--        <table class="layui-table mt10" lay-even="" lay-skin="row">-->
<!--            <thead>-->
<!--            <tr>-->

<!--            </tr>-->
<!--            </thead>-->
<!--        </table>-->
    </div>
</form>
{include file="admin@block/layui" /}
<script src="__STATIC__/js/jquery.2.1.4.min.js"></script>
<script type="text/javascript">
    jeDate("#test11A",{
        format: "YYYY-MM-DD hh:mm:ss",
        multiPane:false,
        range:"~"
    });

    $(".pagination a").on("click",function (e) {
        var url = $(this).attr("href");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        $(location).attr('href', url);
    });
    $(".exportdata").on("click",function (e) {
        var url = $(this).attr("data-url");
        var formdata = $(".layui-form").serialize();
        if(url.indexOf('?')<=-1){
            url = url+"?"+formdata;
        }else{
            url = url+"&"+formdata;
        }
        e.preventDefault();
        location.href=url;
    });
</script>